package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_category_phone")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class CategoryPhoneModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer pid;//父级id
    private String name;//分类名称
    private Integer sort;//排序
    private Integer status;//状态1有效0无效
    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    private List<CategoryPhoneModel> child;
//    @TableField(exist = false)
//    private Integer carType;//设备分类
//    @TableField(exist = false)
//    private String RoleName;//角色名称
}
